package com.backend.room.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.backend.common.annotation.Excel;
import com.backend.common.core.domain.BaseEntity;

/**
 * 房间管理对象 room
 * 
 * @author ruoyi
 * @date 2024-10-04
 */
public class Room extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 房间ID */
    private Long roomId;

    /** 房间名称 */
    @Excel(name = "房间名称")
    private String roomName;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 区/县 */
    @Excel(name = "区/县")
    private String county;

    /** 房间具体位置 */
    @Excel(name = "房间具体位置")
    private String roomLocation;

    /** 月租 */
    @Excel(name = "月租")
    private Long monthlyRent;

    /** 状态（0未上架 1未出租 2已出租） */
    @Excel(name = "状态", readConverterExp = "0=未上架,1=未出租,2=已出租")
    private String status;

    /** 房间类型信息 */
    private List<RoomType> roomTypeList;

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setRoomName(String roomName) 
    {
        this.roomName = roomName;
    }

    public String getRoomName() 
    {
        return roomName;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setCounty(String county) 
    {
        this.county = county;
    }

    public String getCounty() 
    {
        return county;
    }
    public void setRoomLocation(String roomLocation) 
    {
        this.roomLocation = roomLocation;
    }

    public String getRoomLocation() 
    {
        return roomLocation;
    }
    public void setMonthlyRent(Long monthlyRent) 
    {
        this.monthlyRent = monthlyRent;
    }

    public Long getMonthlyRent() 
    {
        return monthlyRent;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<RoomType> getRoomTypeList()
    {
        return roomTypeList;
    }

    public void setRoomTypeList(List<RoomType> roomTypeList)
    {
        this.roomTypeList = roomTypeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roomId", getRoomId())
            .append("roomName", getRoomName())
            .append("province", getProvince())
            .append("city", getCity())
            .append("county", getCounty())
            .append("roomLocation", getRoomLocation())
            .append("monthlyRent", getMonthlyRent())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("roomTypeList", getRoomTypeList())
            .toString();
    }
}
